/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javaseapp - MyVar
 * <p>Powered by webrx On 2021-07-27 10:35:19
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class MyVar {
    //属性
    static int i;
    int c ;

    //方法
    public static void main(String[] args) {
        i = 6;
        System.out.println(i);
        int y; //声明变量
        y = 3;//初始变量
        int c = 4;//声明变量，并初始化赋值
        System.out.println(y);

        {
            //逻辑局部变量
            int z = 7;
        }
        //System.out.println(z);
    }
}
